#include "stdafx.h"
#include "ckCheckCaseManagerFactory.h"
#include "ckCheckCaseManagerAccess.h"
#include "ckCheckCaseManagerMySQL.h"

namespace ck
{

	CheckCaseManagerFactory::CheckCaseManagerFactory()
	{
	}


	CheckCaseManagerFactory::~CheckCaseManagerFactory()
	{
	}

	CheckCaseManagerFactory* CheckCaseManagerFactory::GetInstance()
	{
		static CheckCaseManagerFactory g_checkCaseManager;
		return &g_checkCaseManager;
	}

	CheckCaseManager* CheckCaseManagerFactory::GetCheckCaseManager(ckDbType type)
	{
		CheckCaseManager* pManager = NULL;
		switch (type)
		{
		case ckDbAccess:
		{
			static CheckCaseManagerAccess g_checkCaseAcess;
			CheckCaseManager::m_pInstance = &g_checkCaseAcess;

		}
		break;
		case ckDbMySQL:
		{
			static CheckCaseManagerMySQL g_checkCaseMySQL;
			CheckCaseManager::m_pInstance = &g_checkCaseMySQL;
		}
		break;
		case ckDbOracle:
			break;
		}

		return CheckCaseManager::GetInstance();
	}

}
